package com.hanhai.material.common.constant;

/**
 * Project：health
 * Create by CC
 * on 2022/7/7 23:42
 * Description:
 */
public enum ResultCode {
    /* 成功 */
    SUCCESS(200, "操作成功"),

    /* 默认失败 */
    FAIL(400, "操作失败");
    /*结果代码*/
    private Integer code;
    /*结果信息*/
    private String message;


    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
